package com.asia5b.a5mall.shop.adapter

import com.asia5b.a5mall.middleware.model.promotion.CouponHallModel
import com.asia5b.a5mall.shop.R
import com.asia5b.a5mall.shop.databinding.ItemCouponhallAdapterBinding
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * Created by zhangyuncai on 2020/1/16.
 */
class CouponHallAdapter(list:ArrayList<CouponHallModel>):
BaseQuickAdapter<CouponHallModel, BaseDataBindingHolder<ItemCouponhallAdapterBinding>>(R.layout.item_couponhall_adapter,list){
    override fun convert(helper: BaseDataBindingHolder<ItemCouponhallAdapterBinding>, item: CouponHallModel) {
        val binding = helper.dataBinding!!
        binding.model=item
    }
}